//
//  ViewController.m
//  Demo
//
//  Created by curer on 12/13/15.
//  Copyright © 2015 lion. All rights reserved.
//

#import "ViewController.h"
#import <FDBSDK.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    [FDBSDK setupCurrentWithUserId:@"123" info:@{@"phone" : @123123}];
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [UIColor redColor];
    btn.frame = CGRectMake(0, 0, 200, 200);
    [btn addTarget:self
            action:@selector(testButtonClicked:)
  forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:btn];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - action

- (void)testButtonClicked:(UIButton *)btn {
    [[FDBSDK sharedInstance] showInViewController:self];
}

@end
